package com.ruoyi.constant.v3;

/**
 * @program: ruoyi
 * @description: 外业核查状态
 * @author: xpq
 * @create: 2022-12-21 11:22
 **/
public enum RwwyhcV3Enum {
    WKS(1, "未开始"),
    JXZ(2, "进行中"),
    YWC(3, "已完成");


    private Integer code;
    private String desc;

    RwwyhcV3Enum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    public static String getDescByCode(Integer code) {
        for (RwwyhcV3Enum value : RwwyhcV3Enum.values()) {
            if (value.getCode().equals(code)) {
                return value.getDesc();
            }
        }
        return "";
    }
}
